(function($) {
  $.extend($.summernote.lang, {
    'zh_CN': {
      font: {
        bold: '粗体',
        italic: '斜体',
        underline: '下划线',
        clear: '清除格式',
        height: '行高',
        name: '字体',
        strikethrough: '删除线',
        subscript: '下标',
        superscript: '上标',
        size: '字号',
      },
      image: {
        image: '图片',
        insert: '插入图片',
        resizeFull: '缩放至 100%',
        resizeHalf: '缩放至 50%',
        resizeQuarter: '缩放至 25%',
        floatLeft: '靠左浮动',
        floatRight: '靠右浮动',
        floatNone: '取消浮动',
        shapeRounded: '形状: 圆角',
        shapeCircle: '形状: 圆',
        shapeThumbnail: '形状: 缩略图',
        shapeNone: '形状: 无',
        dragImageHere: '将图片拖拽至此处',
        dropImage: '拖拽图片或文本',
        selectFromFiles: '从本地上传',
        maximumFileSize: '文件大小最大值',
        maximumFileSizeError: '文件大小超出最大值。',
        url: '图片地址',
        remove: '移除图片',
        original: '原始图片',
      },
      video: {
        video: '视频',
        videoLink: '视频链接',
        insert: '插入视频',
        url: '视频地址',
        providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)',
      },
      link: {
        link: '链接',
        insert: '插入链接',
        unlink: '去除链接',
        edit: '编辑链接',
        textToDisplay: '显示文本',
        url: '链接地址',
        openInNewWindow: '在新窗口打开',
      },
      table: {
        table: '表格',
        addRowAbove: '在上方插入行',
        addRowBelow: '在下方插入行',
        addColLeft: '在左侧插入列',
        addColRight: '在右侧插入列',
        delRow: '删除行',
        delCol: '删除列',
        delTable: '删除表格',
      },
      hr: {
        insert: '水平线',
      },
      style: {
        style: '样式',
        p: '普通',
        blockquote: '引用',
        pre: '代码',
        h1: '标题 1',
        h2: '标题 2',
        h3: '标题 3',
        h4: '标题 4',
        h5: '标题 5',
        h6: '标题 6',
      },
      lists: {
        unordered: '无序列表',
        ordered: '有序列表',
      },
      options: {
        help: '帮助',
        fullscreen: '全屏',
        codeview: '源代码',
      },
      paragraph: {
        paragraph: '段落',
        outdent: '减少缩进',
        indent: '增加缩进',
        left: '左对齐',
        center: '居中对齐',
        right: '右对齐',
        justify: '两端对齐',
      },
      color: {
        recent: '最近使用',
        more: '更多',
        background: '背景',
        foreground: '前景',
        transparent: '透明',
        setTransparent: '透明',
        reset: '重置',
        resetToDefault: '默认',
      },
      shortcut: {
        shortcuts: '快捷键',
        close: '关闭',
        textFormatting: '文本格式',
        action: '动作',
        paragraphFormatting: '段落格式',
        documentStyle: '文档样式',
        extraKeys: '额外按键',
      },
      help: {
        insertParagraph: '插入段落',
        undo: '撤销',
        redo: '重做',
        tab: '增加缩进',
        untab: '减少缩进',
        bold: '粗体',
        italic: '斜体',
        underline: '下划线',
        strikethrough: '删除线',
        removeFormat: '清除格式',
        justifyLeft: '左对齐',
        justifyCenter: '居中对齐',
        justifyRight: '右对齐',
        justifyFull: '两端对齐',
        insertUnorderedList: '无序列表',
        insertOrderedList: '有序列表',
        outdent: '减少缩进',
        indent: '增加缩进',
        formatPara: '设置选中内容样式为 普通',
        formatH1: '设置选中内容样式为 标题1',
        formatH2: '设置选中内容样式为 标题2',
        formatH3: '设置选中内容样式为 标题3',
        formatH4: '设置选中内容样式为 标题4',
        formatH5: '设置选中内容样式为 标题5',
        formatH6: '设置选中内容样式为 标题6',
        insertHorizontalRule: '插入水平线',
        'linkDialog.show': '显示链接对话框',
      },
      history: {
        undo: '撤销',
        redo: '重做',
      },
      specialChar: {
        specialChar: '特殊字符',
        select: '选取特殊字符',
      },
    },
    'en_US': {
      font: {
        bold: 'bold',
        italic: 'italic',
        underline: 'underline',
        clear: 'clear',
        height: 'height',
        name: 'name',
        strikethrough: 'strikethrough',
        subscript: 'subscript',
        superscript: 'superscript',
        size: 'size',
      },
      image: {
        image: 'image',
        insert: 'insert',
        resizeFull: 'resizeFull 100%',
        resizeHalf: 'resizeHalf 50%',
        resizeQuarter: 'resizeQuarter 25%',
        floatLeft: 'floatLeft',
        floatRight: 'floatRight',
        floatNone: 'floatNone',
        shapeRounded: 'shapeRounded',
        shapeCircle: 'shapeCircle',
        shapeThumbnail: 'shapeThumbnail',
        shapeNone: 'shapeNone',
        dragImageHere: 'dragImageHere',
        dropImage: 'dropImage',
        selectFromFiles: 'selectFromFiles',
        maximumFileSize: 'maximumFileSize',
        maximumFileSizeError: 'maximumFileSizeError',
        url: 'url',
        remove: 'remove',
        original: 'original',
      },
      video: {
        video: 'video',
        videoLink: 'videoLink',
        insert: 'insert',
        url: 'url',
        providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)',
      },
      link: {
        link: 'link',
        insert: 'insert',
        unlink: 'unlink',
        edit: 'edit',
        textToDisplay: 'textToDisplay',
        url: 'url',
        openInNewWindow: 'openInNewWindow',
      },
      table: {
        table: 'form',
        addRowAbove: 'Insert the row at the top',
        addRowBelow: 'Insert the row below',
        addColLeft: 'Insert columns on the left',
        addColRight: 'Insert columns on the right',
        delRow: 'Delete rows',
        delCol: 'Delete the column',
        delTable: 'Delete the form',
      },
      hr: {
        insert: 'A horizontal line',
      },
      style: {
        style: 'style',
        p: 'ordinary',
        blockquote: 'reference',
        pre: 'code',
        h1: 'title 1',
        h2: 'title 2',
        h3: 'title 3',
        h4: 'title 4',
        h5: 'title 5',
        h6: 'title 6',
      },
      lists: {
        unordered: 'Unordered list',
        ordered: 'An ordered list',
      },
      options: {
        help: 'help',
        fullscreen: 'Full screen',
        codeview: 'The source code',
      },
      paragraph: {
        paragraph: 'Paragraph',
        outdent: 'Reduce',
        indent: 'Increase',
        left: 'The left',
        center: 'Align center',
        right: 'Align right',
        justify: 'full-justified',
      },
      color: {
        recent: 'Recently used',
        more: 'More and more',
        background: 'background',
        foreground: 'prospects',
        transparent: 'transparent',
        setTransparent: 'transparent',
        reset: 'reset',
        resetToDefault: 'default',
      },
      shortcut: {
        shortcuts: 'shortcuts',
        close: 'close',
        textFormatting: 'Text format',
        action: 'action',
        paragraphFormatting: 'Paragraph format',
        documentStyle: 'Document style',
        extraKeys: 'Additional keys',
      },
      help: {
        insertParagraph: 'Insert a paragraph',
        undo: 'undo',
        redo: 'redo',
        tab: 'Increase indent',
        untab: 'Reduce the indentation',
        bold: 'The bold',
        italic: 'italics',
        underline: 'The underline',
        strikethrough: 'Delete the line',
        removeFormat: 'Clear format',
        justifyLeft: 'The left',
        justifyCenter: 'Align center',
        justifyRight: 'Align right',
        justifyFull: 'full-justified',
        insertUnorderedList: 'Unordered list',
        insertOrderedList: 'An ordered list',
        outdent: 'Reduce the indentation',
        indent: 'Increase indent',
        formatPara: 'Sets the selected content style to normal',
        formatH1: 'Sets the selected content style to title 1',
        formatH2: 'Sets the selected content style to title 2',
        formatH3: 'Sets the selected content style to title 3',
        formatH4: 'Sets the selected content style to title 4',
        formatH5: 'Sets the selected content style to title 5',
        formatH6: 'Sets the selected content style to title 6',
        insertHorizontalRule: 'Insert horizontal line',
        'linkDialog.show': 'Displays the link dialog',
      },
      history: {
        undo: 'undo',
        redo: 'redo',
      },
      specialChar: {
        specialChar: 'Special characters',
        select: 'Select special characters',
      },
    },
    'ja_JP': {
      font: {
        bold: 'bold',
        italic: 'italic',
        underline: 'underline',
        clear: 'clear',
        height: 'height',
        name: 'name',
        strikethrough: 'strikethrough',
        subscript: 'subscript',
        superscript: 'superscript',
        size: 'size',
      },
      image: {
        image: 'image',
        insert: 'insert',
        resizeFull: 'resizeFull 100%',
        resizeHalf: 'resizeHalf 50%',
        resizeQuarter: 'resizeQuarter 25%',
        floatLeft: 'floatLeft',
        floatRight: 'floatRight',
        floatNone: 'floatNone',
        shapeRounded: 'shapeRounded',
        shapeCircle: 'shapeCircle',
        shapeThumbnail: 'shapeThumbnail',
        shapeNone: 'shapeNone',
        dragImageHere: 'dragImageHere',
        dropImage: 'dropImage',
        selectFromFiles: 'selectFromFiles',
        maximumFileSize: 'maximumFileSize',
        maximumFileSizeError: 'maximumFileSizeError',
        url: 'url',
        remove: 'remove',
        original: 'original',
      },
      video: {
        video: 'video',
        videoLink: 'videoLink',
        insert: 'insert',
        url: 'url',
        providers: '(优酷, 腾讯, Instagram, DailyMotion, Youtube等)',
      },
      link: {
        link: 'link',
        insert: 'insert',
        unlink: 'unlink',
        edit: 'edit',
        textToDisplay: 'textToDisplay',
        url: 'url',
        openInNewWindow: 'openInNewWindow',
      },
      table: {
        table: 'form',
        addRowAbove: 'Insert the row at the top',
        addRowBelow: 'Insert the row below',
        addColLeft: 'Insert columns on the left',
        addColRight: 'Insert columns on the right',
        delRow: 'Delete rows',
        delCol: 'Delete the column',
        delTable: 'Delete the form',
      },
      hr: {
        insert: 'A horizontal line',
      },
      style: {
        style: 'style',
        p: 'ordinary',
        blockquote: 'reference',
        pre: 'code',
        h1: 'title 1',
        h2: 'title 2',
        h3: 'title 3',
        h4: 'title 4',
        h5: 'title 5',
        h6: 'title 6',
      },
      lists: {
        unordered: 'Unordered list',
        ordered: 'An ordered list',
      },
      options: {
        help: 'help',
        fullscreen: 'Full screen',
        codeview: 'The source code',
      },
      paragraph: {
        paragraph: 'Paragraph',
        outdent: 'Reduce',
        indent: 'Increase',
        left: 'The left',
        center: 'Align center',
        right: 'Align right',
        justify: 'full-justified',
      },
      color: {
        recent: 'Recently used',
        more: 'More and more',
        background: 'background',
        foreground: 'prospects',
        transparent: 'transparent',
        setTransparent: 'transparent',
        reset: 'reset',
        resetToDefault: 'default',
      },
      shortcut: {
        shortcuts: 'shortcuts',
        close: 'close',
        textFormatting: 'Text format',
        action: 'action',
        paragraphFormatting: 'Paragraph format',
        documentStyle: 'Document style',
        extraKeys: 'Additional keys',
      },
      help: {
        insertParagraph: 'Insert a paragraph',
        undo: 'undo',
        redo: 'redo',
        tab: 'Increase indent',
        untab: 'Reduce the indentation',
        bold: 'The bold',
        italic: 'italics',
        underline: 'The underline',
        strikethrough: 'Delete the line',
        removeFormat: 'Clear format',
        justifyLeft: 'The left',
        justifyCenter: 'Align center',
        justifyRight: 'Align right',
        justifyFull: 'full-justified',
        insertUnorderedList: 'Unordered list',
        insertOrderedList: 'An ordered list',
        outdent: 'Reduce the indentation',
        indent: 'Increase indent',
        formatPara: 'Sets the selected content style to normal',
        formatH1: 'Sets the selected content style to title 1',
        formatH2: 'Sets the selected content style to title 2',
        formatH3: 'Sets the selected content style to title 3',
        formatH4: 'Sets the selected content style to title 4',
        formatH5: 'Sets the selected content style to title 5',
        formatH6: 'Sets the selected content style to title 6',
        insertHorizontalRule: 'Insert horizontal line',
        'linkDialog.show': 'Displays the link dialog',
      },
      history: {
        undo: 'undo',
        redo: 'redo',
      },
      specialChar: {
        specialChar: 'Special characters',
        select: 'Select special characters',
      },
    },
  });
})(jQuery);
